home *** CD-ROM | disk | FTP | other *** search
- /*
- File: OCELetter.h
-
- Contains: xxx put contents here xxx
-
- Written by: Tim Harnett
-
- Copyright: © 1994 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <1> 9/20/94 TMH Abandon RoadsideRest embrace Mercury
- <4> 9/9/94 TMH TIncoming/TOutgoing adaptations, removed TAOCELetter
- <3> 6/17/94 TMH read content stuff
- <2> 6/14/94 TMH use CRecipient.h
- 4/12/94 TMH xxx put comment here xxx
-
- To Do:
- */
-
-
- #ifndef __Letter__
- #define __Letter__
-
- class CContentReader;
- #ifndef __TYPES__
- #include "Types.h"
- #endif
-
- #ifndef __OCEMAIL__
- #include <OCEMail.h>
- #endif
-
- class TMSAMSlot;
-
- #ifndef __CRString__
- #include "CRString.h"
- #endif
-
-
- //------------------------------------------------------------------------------
- // MaximumLetterAttributes
- //
- // this structure is here to calculate the maximum buffer size needed when
- // calling MSAMGetAttributes. This structure isn't actually used to read the
- // attributes, since if one is missing, they will not be aligned in this way.
- //
- // note: this structure was incorrect prior to 11/9/93, as the format of
- // the attributes changed some time ago and I didn't change the PMSAM...
- // we don't include from/to/cc/bcc since we don't access them via GetAttributes
- //--------------------------------------------------------------------------------
-
- typedef struct MaximumLetterAttributes {
- MailLetterFlags letterFlags;
- MailIndications indications;
- OCECreatorType msgType;
- MailLetterID letterID;
- MailTime sendTimeStamp;
- MailNestingLevel nestingLevel;
- OSType msgFamily;
- MailLetterID replyID;
- MailLetterID conversationID;
- RString subject;
- } MaximumLetterAttributes, *MaximumLetterAttributesPtr;
-
-
-
- //--------------------------------------
- // T L e t t e r
- //--------------------------------------
-
-
- class TLetter {
- public:
- TLetter();
- void ILetter(TMSAMSlot* msamSlot);
-
-
- // Accessors
-
- TMSAMSlot* GetSlot() { return fMSAMSlot; }
-
- // Get Letter Parts
-
-
- virtual short GetPriority();
- virtual Boolean HasContent();
- virtual void GetSubject(CRString32& rstr);
- virtual void GetSenderName(CRString32& rstr);
- virtual long GetContentLength();
- virtual void GetSendTime(MailTime* utcTime);
-
-
- protected:
-
- CRString32 fSubject;
- CRString32 fSenderName;
- MailTime fSendTime;
-
- TMSAMSlot* fMSAMSlot;
-
- };
-
-
-
- #endif __OCELetter__
-